<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        img {
            border: 1px solid #d9ad50;
            border-radius: 42px;
        }
        i {
            background-image: url("https://game.gtimg.cn/images/lol/v3/topfoot-spr.png");
            width: 21px;
            height: 21px;
            display: inline-block;
            background-position: -381px -39px;
        }
    </style>
</head>
<body>
<img src=""
     width="42" height="42">
<hr>
<i></i>


<script>


    /**
     * Java:
     for(int i=0;i<10;i++){
        int y = i+1;
    }
     int z = i+y;  //编译报错
     JavaScript:  let
     for(let i=0;i<10;i++){
        let y = i+1;
    }
     let z = i+y;  // 不报错 但是访问不到 i和y 因为超出了作用域

     JavaScript:  var
     for(var i=0;i<10;i++){
        var y = i+1;
    }
     var z = i+y;  // 可以访问i和y


     */












</script>

</body>
</html>